#ifndef __COLOR_H__
#define __COLOR_H__

#include <iostream>

namespace t2c2 {

struct Color {
	Color(const double,const double,const double);
	Color(void);
	Color(const Color&);
	~Color(void);

	Color& operator=(const Color&);
	const double operator[](const int&) const;
	const Color operator+(const Color&) const;
	const Color operator*(const Color&) const;
	friend Color operator*(const Color&,const double);
	friend Color operator*(const double,const Color&);
			
	void show(void) const { std::cout << "R: " << red << "/ G: " << green << " / B : " << blue << std::endl; }
	
	double red,green,blue;
};

}

#endif
